package com.oa.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class HouseAddDTO {

    @ApiModelProperty(value = "房屋编号")
    @NotNull(message = "<房屋编号>字段<houseNum>不能为空！")
    private String houseNum;

    @ApiModelProperty(value = "租赁时间")
    @NotNull(message = "<租赁时间>字段<leaseTime>不能为空！")
    private Date leaseTime;

    @ApiModelProperty(value = "到期时间")
    @NotNull(message = "<到期时间>字段<endTime>不能为空！")
    private Date endTime;

    @ApiModelProperty(value = "提醒时间")
    @NotNull(message = "<提醒时间>字段<reminderTime>不能为空！")
    private Date reminderTime;

    @ApiModelProperty(value = "月租")
    @NotNull(message = "<月租>字段<monthlyRent>不能为空！")
    private String monthlyRent;

    @ApiModelProperty(value = "押金")
    @NotNull(message = "<押金>字段<cashPledge>不能为空！")
    private String cashPledge;

    @ApiModelProperty(value = "地址")
    @NotNull(message = "<地址>字段<address>不能为空！")
    private String address;

    @ApiModelProperty(value = "面积")
    @NotNull(message = "<面积>字段<area>不能为空！")
    private String area;

    @ApiModelProperty(value = "用途(1-办公 2-宿舍)")
    @NotNull(message = "<用途>字段<use>不能为空！")
    private String uses;

    @ApiModelProperty(value = "备注")
    private String remake;

    @ApiModelProperty(value = "入住记录")
    private List<HouseCheckDTO> houseCheckDTOList;
}
